from typing import *


class Solution:

    def numOfBurgers(self, tomatoSlices: int, cheeseSlices: int) -> List[int]:
        t, c = tomatoSlices, cheeseSlices
        a = t - c * 2
        b = 4 * c - t
        if a < 0 or b < 0 or a % 2 != 0 or b % 2 != 0:
            return []
        return [(t - c * 2) // 2, (4 * c - t) // 2]
